import api from '../utils/api';

export async function getTypeList(param) {
  return api.post('/dataCount/assetTypeCount', {
    data: JSON.stringify(param),
  });
}
export async function queryAssetType(param) {
  return api.post('/dataCount/getAssetType');
}

export async function queryRoom(param) {
  return api.post('/dataCount/getRoom');
}

export async function getStatusList(param) {
  return api.post('/dataCount/assetStatusCount', {
    data: JSON.stringify(param),
  });
}
export async function getBrandList(param) {
  return api.post('/dataCount/assetBrandCount', {
    data: JSON.stringify(param),
  });
}
export async function getDepartList(param) {
  return api.post('/dataCount/assetDepartCount', {
    data: JSON.stringify(param),
  });
}
export async function getServiceLifeList(param) {
  return api.post('/dataCount/serviceLifeCount', {
    data: JSON.stringify(param),
  });
}
export async function queryAssetBrand(param) {
  return api.post('/dataCount/getAssetBrand');
}

export async function getDepartments(){
  return api.post('/dataCount/getDepartments');
}

export async function getCabinetCountList(param){
  return api.post('/dataCount/CabinetCount', {
    data: JSON.stringify(param),
  });
}

export async function queryBrandDataDetail(param) {
  return api.post('/dataCount/queryBrandDataDetail', {
    data: JSON.stringify(param),
  });
}

export async function queryDepartDataDetail(param) {
  return api.post('/dataCount/queryDepartDataDetail', {
    data: JSON.stringify(param),
  });
}

export async function queryStatusDataDetail(param) {
  return api.post('/dataCount/queryStatusDataDetail', {
    data: JSON.stringify(param),
  });
}

export async function queryTypeDataDetail(param) {
  return api.post('/dataCount/queryTypeDataDetail', {
    data: JSON.stringify(param),
  });
}
export async function queryServiceLifeDetail(param) {
  return api.post('/dataCount/queryServiceLifeDetail', {
    data: JSON.stringify(param),
  });
}
